package 集合;

import java.util.LinkedList;

public class LinkedListUse {
	public static void main(String[] args) {
		LinkedList<Integer> integers = new LinkedList<>();
		for (int i = 0; i < 10; i++) {
			integers.add(i);
		}
		System.out.println(integers);
		System.out.println(integers.getFirst());
		System.out.println(integers.getLast());
		System.out.println(integers.element());
	}

}
